<?php

class GuestbookEntry extends AppModel {
    var $virtualFields = array(
        'nickname' => 'IF(GuestbookEntry.guest>0, GuestbookEntry.nick, User.username)'
    );
    var $belongsTo = array('User');
}
?>
